package com.service.impl;



import com.dao.FinancingDao;
import com.dao.impl.FinancingDaoImpl;
import com.entry.Financing;
import com.entry.Instituty;
import com.entry.User;
import com.pojo.FinIns;
import com.pojo.PojoAll;
import com.service.FinancingService;
import com.pojo.FinIns;
import com.service.FinancingService;
import com.util.PageHelper;

import java.util.ArrayList;

public class FinancingServiceImpl implements FinancingService {
    private FinancingDao financingDao = new FinancingDaoImpl();
    @Override
    public ArrayList selectQuery(FinIns finIns , PageHelper pageHelper, double Max, double Min) {
        return financingDao.selectQuery(finIns,pageHelper,Max,Min);
    }

    @Override
    public int selectQuerySize(FinIns finIns, PageHelper pageHelper, double Max, double Min) {
        return financingDao.selectQuerySize(finIns,pageHelper,Max,Min);
    }

    @Override
    public FinIns selectQuery(FinIns finIns) {
        return financingDao.selectQuery(finIns);
    }

    @Override
    public int insertFinancing(Financing financing) {
        return financingDao.insertFinancing(financing);
    }

    @Override
    public ArrayList selectAll() {
        return financingDao.selectAll();
    }

    @Override
    public ArrayList selectQuery(Financing financing, Instituty instituty) {
        return null;
    }

    @Override
    public ArrayList<Financing> selectByNo(String no) {
        return financingDao.selectByNo(no);
    }
}
